package com.atguigu.srb.core.mapper;

import com.atguigu.srb.core.pojo.entity.UserAccount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * <p>
 * 用户账户 Mapper 接口
 * </p>
 *
 * @author Atguigu
 * @since 2024-10-11
 */
public interface UserAccountMapper extends BaseMapper<UserAccount> {

    boolean updateAmountByBindCode(@Param("amount") BigDecimal amount,@Param("bindCode") String bindCode);

    boolean updateInvestAmountByUserId(@Param("userId") Long userId,@Param("voteAmt") String voteAmt);

    boolean updateFreezeAmountByUserId(@Param("investUserId")Long investUserId,@Param("investAmount") BigDecimal investAmount);
}
